package com.swm.yzgrtk;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

import java.io.IOException;

public class RtkApplication extends Application {
    public static RtkController rtkController = new RtkController();

    @Override
    public void start(Stage stage) throws IOException {

        VBox vBox = new VBox();
        //添加界面
        FXMLLoader fxmlLoader = new FXMLLoader(RtkApplication.class.getResource("rtk-view.fxml"));
        // 为表格设置控制器
        fxmlLoader.setController(rtkController);

        vBox.getChildren().add(fxmlLoader.load());

        Scene scene = new Scene(vBox, 1600, 900);
        stage.setTitle("RTK测试");
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch();
    }
}